<?php 
class PositionModel extends BaseModel {
	public function add_position($data) {
		$result = $this->add($data);
		if($result){
			return true;
		}else{
			return false;
		}
	}
	public function get_position($pid) {
		$result = $this->where(array('pid'=>$pid))->find();
		return $result;
	}
	public function edit_position($id,$data) {
		$result = $this->where(array('pid'=>$id))->save($data);
		
		if($result){
			return true;
		}else{
			return false;
		}
		
	}
	public function del_position($id){
		$data['is_del']=1;
		$da =$this->where(array('pid'=>$id))->save($data);
		if($da){
			return true;
		}else{
			return false;
		}
	}
	
}
?>